package com.example.zhugenew.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.mymvplibrary.adapter.BaseAdapter;
import com.example.mymvplibrary.adapter.BaseViewHolder;
import com.example.zhugenew.R;

import java.util.List;

public class HouseAdapter extends BaseAdapter<HouseBean.ListBean> {
    public HouseAdapter(List<HouseBean.ListBean> datas, Context context, int layoutId) {
        super(datas, context, layoutId);
    }

    @Override
    public void bindData(BaseViewHolder holder, HouseBean.ListBean listBean, int pos) {
        ImageView image = holder.getView(R.id.house_image);
        Glide.with(context).load(listBean.getIcon()).into(image);
        holder.setText(R.id.house_text,listBean.getTitle());
    }


}
 